package com.afkx.oop.phone;

/**
 * @ClassName PhoneTest
 * @Description TODO
 * @Author Kx
 * @Date 2025/2/28 10:04
 * @Version 1.0
 */
public class PhoneTest {
    public static void main(String[] args) {
        // 创建对象
        Phone phone = new Phone();

        phone.setBrand("华为");
        phone.setName("华为P40");
        phone.setPrice(6999);
        phone.setContactList(new String[]{"张三","李四","王五"});

        phone.call();
        phone.sendMessage("王五","你好");
    }
}
